package org.pandaria.war3.w3g.analyseur;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;


public class Test {
	
	public static void main(String[] args) {
		
		try {
			
			InputStream io = new FileInputStream("exemples/lag.w3g");
		
			// octet lu
			int o=0;
			
			while ( (o=io.read() )!=-1 ){
				//String s = String.valueOf(o);
				System.out.print(Integer.toHexString(o));
				//System.out.print(Integer.toBinaryString(o));
				//System.out.println(Integer.toString(o));
			}
			
			//io.read();
		
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}
	

}
